package cn.yuanqiao.archive.Identify.domain;/**
 * @author 赵常飞
 * @date 2023/7/14 9:47
 */

import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;

/**
 *
 *@AUTHOR:赵常飞
 *@date 2023/7/14 9:47
 */
public class TenantYqKfjdTask extends BaseEntity {
    private final String BIGTABLENAME = "_KFJD_TASK";
    private static final long serialVersionUID = 1L;
    private String tableName;
    public TenantYqKfjdTask() {
        String tenantCode = SecurityUtils.getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            throw new ServiceException("TenantCode is null");
        }else {
            this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
        }
    }
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    /** 任务id */
    private Long renwuid;

    /** 状态 */
    private Integer status;

    /** 开始时间 */
    private String starttime;

    /** 结束时间 */
    private String endtime;

    /** 操作人 */
    private String caozuoren;

    public Long getRenwuid() {
        return renwuid;
    }

    public void setRenwuid(Long renwuid) {
        this.renwuid = renwuid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getCaozuoren() {
        return caozuoren;
    }

    public void setCaozuoren(String caozuoren) {
        this.caozuoren = caozuoren;
    }

    @Override
    public String toString() {
        return "TenantYqKfjdTask{" +
                "tableName='" + tableName + '\'' +
                ", renwuid=" + renwuid +
                ", status=" + status +
                ", starttime='" + starttime + '\'' +
                ", endtime='" + endtime + '\'' +
                ", caozuoren=" + caozuoren +
                '}';
    }
}
